<template>
	<view class="title-index-view">
		<view class="tag"></view>
		<view class="title">{{title}}</view>
	</view>
</template>

<script>
	export default {
		name:"TitleIndex",
		props: {
			title: {
				type: String,
				default () {
					return ''
				}
			},
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.title-index-view{
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	
	.tag{
		width: 20rpx;
		height: 50rpx;
		background-color: $app-main-color;
		border-radius: 10rpx;
	}
	
	.title{
		margin-left: 10rpx;
		font-weight: bold;
	}
</style>
